import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    bookInfo:null,
    sorterInfo:null,
    bookRack:[],
  },
  mutations: {
    setBookInfo(state,info){
      state.bookInfo = info;
    },
    setSorterInfo(state,info){
      state.sorterInfo = info
    },
    setBookRackInfo(state,info){
      state.bookRack.push(info)
    }
   
  },
  actions: {
  },
  modules: {
  }
})
